home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8112 < prev    next >
Encoding:
Text File  |  1996-08-05  |  924 b   |  36 lines

  1. Path: lade.news.pipex.net!pipex!bt!usenet
  2. From: Alwyn Thomas <alwyn@pia.bt.co.uk>
  3. Newsgroups: comp.lang.c,gnu.gcc.help,comp.unix.programmer
  4. Subject: Re: Help for using bcopy function
  5. Date: Fri, 01 Mar 1996 17:10:16 +0000
  6. Organization: BT Labs, Martlesham Heath, Ipswich, UK
  7. Message-ID: <31372F78.167EB0E7@pia.bt.co.uk>
  8. References: <4gl53u$4bv@kocrsv08.delcoelect.com> <ELIAS.96Feb27144032@cepheus.omicron.se>
  9. NNTP-Posting-Host: 147.150.9.53
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4c)
  14.  
  15. Elias Martenson wrote:
  16.  
  17. > bcopy() is not standard AFAIK. Use memcpy instead.
  18.  
  19.  
  20. It's certainly standard on SunOS.
  21.  
  22. What the enquirer needs to do is to add the line:
  23.  
  24. extern bcopy();
  25.  
  26. at the top of every source file in which bcopy() is called.
  27.  
  28. If you are using g++ you should put:
  29.  
  30. extern "C" void bcopy(char*, char*);
  31.  
  32. instead.
  33.  
  34.  
  35. Alwyn
  36.